1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'horse/"%" and R_keysname LIKE "%24x36%" and R_keysname LIKE "%inch%" and R_keysn' at line 1
in:
[SELECT R_keysname FROM r_key WHERE R_keysname <> '"horse/" 24x36 inch abstract oil paintings' AND R_keysname LIKE "%"horse/"%" and R_keysname LIKE "%24x36%" and R_keysname LIKE "%inch%" and R_keysname LIKE "%abstract%" and R_keysname LIKE "%oil%" and R_keysname LIKE "%paintings%" ORDER BY R_count DESC LIMIT 0, 10]